submoddirs := $(patsubst %/Makefile,%,$(wildcard */Makefile))
all:
	@for %%d in ($(submoddirs)); do make -C %%d || exit 1

clean:
	@for %%d in ($(submoddirs)); do make -C %%d $@